package com.kj.report.rest;

import com.kj.common.exception.RestException;
import com.kj.common.response.Response;
import com.kj.common.response.ResponseCode;
import com.kj.report.rest.base.baseRest;
import com.kj.report.service.ReportV2Service;
import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Logger;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 报告生成相关-mn
 */
@RestController
@RequestMapping("/report/rest")
public class ReportV2Rest{

    @Resource
    private ReportV2Service reportV2Service;


    private static Logger logger = Logger.getLogger(ReportV2Rest.class);

    /**
     * 生成报告-mn
     * @return
     */
    @RequestMapping("/reportV2Generation")
    public Response<?> reportV2Generation(Long uid, String reportId){
       /* if (StringUtils.isBlank(reportId)){
            throw new RestException(ResponseCode.ILLEGAL_PARAM.getCode(),"报告Id 不能为空");
        }
        if (uid == null){
            throw new RestException(ResponseCode.ILLEGAL_PARAM.getCode(),"用户Id 不能为空");
        }*/
        Response<?>  result=reportV2Service.reportV2Generation((long) 1,"KJ103IS00000111180904162251427");
        return null;
    }



    }



